package cnpm02.j2ee.group3.logic.dao.impl;

import javax.ejb.Local;

import cnpm02.j2ee.group3.logic.dao.generic.AbstractEntityDao;
import cnpm02.j2ee.group3.model.GeneralRegulation;

/**
 * Dao for {@link GeneralRegualtion}.
 * @author BINH
 * @version 1.0
 * */
@Local
public interface GeneralRegulationDao extends
		AbstractEntityDao<GeneralRegulation> {
	//public static final String LATEST_REGUALTION_QUERY = "SELECT TOP 1 * FROM GENERAL_REGULATION ORDER BY LastChange";
	public static final String LATEST_REGUALTION_QUERY = "from GeneralRegulation order by lastChange desc";
	public static final String SELECT_ALL_QUERY = "from GeneralRegulation gr order by gr.lastChange";
	
	GeneralRegulation getLastestRegulation();
}
